<p title="Also creates heroic turtles.">Allows mutation, increasing the power of each member of your swarm.</p>

<p>To activate mutagen, your swarm must <b>ascend</b> - restart on a new world. Space travel is too harsh for most of your swarm, but mutagen strengthens a few of your swarm's larvae for the trip to their new planet. All the descendents of these larvae - your new swarm - will benefit from mutagen's power.</p>

<p>Ascending will activate {{game.unit('premutagen').count()|longnum}} new mutagen. Your swarm has infested {{game.unit('ascension').count()|longnum}} new worlds so far.</p>
<p>Ascending now will cost {{game.ascendCost()|longnum}} energy. Spend energy elsewhere to reduce this cost; you've spent {{game.ascendEnergySpent()|longnum}} energy.</p>
<div class="progress" style="margin-bottom:0">
  <div ng-if="game.ascendCostCapDiff().greaterThan(0)" class="progress-bar progress-bar-danger pull-right" role="progressbar" aria-valuenow="{{game.ascendCostCapDiff()}}" aria-valuemin="0" aria-valuemax="{{game.ascendCost()}}" ng-style="{width:game.ascendCostCapDiff().dividedBy(game.ascendCost()).times(100)+'%'}">
    {{game.ascendCostCapDiff()|longnum}} more than your max energy!
  </div>
  <div class="progress-bar" role="progressbar" aria-valuenow="{{game.unit('energy').count()}}" aria-valuemin="0" aria-valuemax="{{game.ascendCost()}}" ng-style="{width:game.ascendCostPercent().times(100)+'%'}">
    {{game.unit('energy').count()|longnum}} energy, {{game.ascendCostPercent()|percent:0}}<span ng-if="game.ascendCostCapDiff().lessThanOrEqualTo(0) && game.ascendCostPercent().lessThan(1)">: {{game.ascendCostDurationMoment()|duration}}</span>
  </div>
</div>
<p><button title="" ng-click="commands.ascend({game:game})" class="btn btn-primary" ng-class="{disabled:game.ascendCost().greaterThan(game.unit('energy').count())}">Ascend - activate mutagen and restart</button></p>
<p ng-if="options.showAdvancedUnitData()"><button title="" ng-click="game.session.state.watched={}" class="btn btn-default">Reset upgrade notifiers <span class="small disabled glyphicon glyphicon-circle-arrow-up"></span></button></p>

<div>
<p>
Respeccing refunds all {{game.respecSpent().times(game.respecRate()) | longnum}} mutagen you've spent,
but resets all mutagen units and upgrades to 0, and resets your next ascension's energy cost to {{game.ascendCost({spent:0}) | longnum}}.
</p>

<p>Respeccing now will cost {{game.respecCost()|longnum}} energy ({{game.respecCostRate|percent}} of your next ascension's cost).</p>

<p><button title="" ng-click="commands.respec({game:game})" ng-disabled="game.respecSpent().isZero() || !game.isRespecCostMet()" class="btn btn-default">Respec - refund mutagen, but reset ascension cost</button></p>

<p>One free respec is available every three ascensions. You have {{game.unit('freeRespec').count()|longnum}} free respecs remaining.</p>
<p><button title="" ng-click="commands.respecFree({game:game})" ng-disabled="game.respecSpent().isZero() || game.unit('freeRespec').count().lessThanOrEqualTo(0)" class="btn btn-default">Respec (free)</button></p>
</div>
